function fetchData (callback) {
  setTimeout(() => {
    // eslint-disable-next-line standard/no-callback-literal
    callback('我是返回的数据')
  }, 5000)
}
function promiseFecth () {
  return new Promise((resolve, reject) => {
    fetchData(res => {
      resolve(res)
    })
  })
}
promiseFecth().then(res => {
  console.log(1, res)
}).catch(err => {
  console.log(2, err)
})
